package com.jc.subject.domin.convert;

import com.jc.subject.domin.entity.SubjectCategoryBO;
import com.jc.subject.infra.basic.entity.SubjectCategory;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Description: 使用 MapStruct 实现 SubjectCategoryBO 转换为 SubjectCategory
 * @Author: ASL_ly
 * @Package: com.jc.subject.domin.convert
 * @Project: jc-club
 * @Date: 2024/10/21  19:40
 */
@Mapper
public interface SubjectCategoryConverter {
    SubjectCategoryConverter INSTANCE = Mappers.getMapper(SubjectCategoryConverter.class);

    SubjectCategory convertBoToCategory(SubjectCategoryBO subjectCategoryBO);

    List<SubjectCategoryBO> convertCategoryToBOList(List<SubjectCategory> subjectCategoryList);

}